import { request } from "./index";

// 用户登陆
export function UserLogin (data: {email: string, password: string}) {
    return request({
        url: '/api/auth/login',
        method: 'post',
        data: data
    })
}


// 用户注册
export function UserRegister (data: any) {
    return request({
        url: '/api/auth/register',
        method: 'post',
        data: data
    })
}